package com.newtouch.avmarketing.mgr.modules.avmarkrting.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.CreatedBy;

import javax.persistence.*;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Entity
@Table(schema = "avmarketing",name = "configuration_content")
public class ConfigurationContent implements Serializable {

    @Id
    @GeneratedValue(strategy= GenerationType.IDENTITY)
    @ApiModelProperty(value = "主键",example = "1",hidden = true)
    @Column(name="id")
    private Long id;

    @ApiModelProperty(value = "步骤序号")
    @Column(name="step_id")
    private Long stepId;

    @ApiModelProperty(value = "话术文本")
    @Column(name="content")
    private String content;

    @ApiModelProperty(value = "条件 1.包含 2. 大于 3.小于 4.等于 5.不等于")
    @Column(name="conditions")
    private String conditions;

    @ApiModelProperty(value = "条件内容")
    @Column(name="condition_content")
    private String conditionContent;

    //1:已删除 0:未删除
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    @CreatedBy
    @ApiModelProperty(value = "逻辑删除  1:已删除 0:未删除", hidden = true)
    @Column(name="is_deleted")
    private String isDeleted;

}
